package com.by.basicgateway;

import com.by.basicgateway.config.LoadBalancerConfig;
import com.by.toolkitspring.customizeannotation.ByScan;
import com.by.toolkitspring.handler.Handler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;

@Slf4j
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = {"com.by"})
@LoadBalancerClients(defaultConfiguration = LoadBalancerConfig.class)
@ByScan(basePackage = "com.by", annotationClass = {Handler.class})
public class GatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
    }

}
